//
//  HomeViewController.m
//  XKStudyDemo
//
//  Created by xukai on 2017/11/27.
//  Copyright © 2017年 xukai. All rights reserved.
//

#import "HomeViewController.h"

@interface HomeViewController ()



@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSDictionary *dic = @{@"title" : @"Draw(绘画)", @"className" : @"DrawManageViewController"};
    NSDictionary *dic1 = @{@"title" : @"引导页面", @"className" : @"GuieViewController"};
    NSDictionary *dic2 = @{@"title" : @"弹出视图", @"className" : @"PopViewListController"};
    NSDictionary *dic3 = @{@"title" : @"系统分享", @"className" : @"SocialShareListViewController"};

    self.dataSoureArray = @[dic,dic1,dic2,dic3];
    
}

-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSDictionary *dic = self.dataSoureArray[indexPath.row];
    UIViewController *vc =[[NSClassFromString(dic[@"className"]) alloc] init];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
}



@end
